/// id : 1
/// title : "测试考试"
/// time : "2024-09-12 00:00:00"
/// num : null
/// remainingTime : "90"
/// state : "wwc"
/// isFinish : null
/// option : "1,2,3,4"
/// startDate : "1725897600"

class ExaminationDto {
  ExaminationDto({
    int? id,
      String? title, 
      String? time, 
      dynamic num, 
      String? remainingTime, 
      String? state, 
      dynamic isFinish, 
      String? option, 
      String? startDate,}){
    _id = id;
    _title = title;
    _time = time;
    _num = num;
    _remainingTime = remainingTime;
    _state = state;
    _isFinish = isFinish;
    _option = option;
    _startDate = startDate;
}

  ExaminationDto.fromJson(dynamic json) {
    _id = json['id'];
    _title = json['title'];
    _time = json['time'];
    _num = json['num'];
    _remainingTime = json['remainingTime'];
    _state = json['state'];
    _isFinish = json['isFinish'];
    _option = json['option'];
    _startDate = json['startDate'];
  }
  int? _id;
  String? _title;
  String? _time;
  dynamic _num;
  String? _remainingTime;
  String? _state;
  dynamic _isFinish;
  String? _option;
  String? _startDate;
ExaminationDto copyWith({  int? id,
  String? title,
  String? time,
  dynamic num,
  String? remainingTime,
  String? state,
  dynamic isFinish,
  String? option,
  String? startDate,
}) => ExaminationDto(  id: id ?? _id,
  title: title ?? _title,
  time: time ?? _time,
  num: num ?? _num,
  remainingTime: remainingTime ?? _remainingTime,
  state: state ?? _state,
  isFinish: isFinish ?? _isFinish,
  option: option ?? _option,
  startDate: startDate ?? _startDate,
);
  int? get id => _id;
  String? get title => _title;
  String? get time => _time;
  dynamic get num => _num;
  String? get remainingTime => _remainingTime;
  String? get state => _state;
  dynamic get isFinish => _isFinish;
  String? get option => _option;
  String? get startDate => _startDate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['title'] = _title;
    map['time'] = _time;
    map['num'] = _num;
    map['remainingTime'] = _remainingTime;
    map['state'] = _state;
    map['isFinish'] = _isFinish;
    map['option'] = _option;
    map['startDate'] = _startDate;
    return map;
  }

}